﻿using System;
using System.Net;
using System.Net.Sockets;

namespace Tester
{
    class Program
    {
        static void Main(string[] args)
        { 
            string URL = String.Format("http://{0}:{1}/MyURI/Directory/", airwolf.IP.LocalAddress, 20202);
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);
            Console.WriteLine("Sending HTTP request to {0}", URL);
            WebResponse response = request.GetResponse();
            System.IO.Stream responseSteam = response.GetResponseStream();
            System.IO.StreamReader reader = new System.IO.StreamReader(responseSteam);
            string responseText = reader.ReadToEnd();
            Console.WriteLine("Response: {0}", responseText);
            Console.Read();
        }
    }
}
